.class Lcom/waiqin365/lightapp/product/dq;
.super Landroid/os/Handler;


# instance fields
.field a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/dq;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v5, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/dq;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    sparse-switch v1, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->e(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->d()V

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->e(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->a(Ljava/lang/String;)V

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/product/b/a/m;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/b/a/m;->b()Z

    move-result v2

    if-eqz v2, :cond_7

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/product/b/a/m;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_7

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->p(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/d/h;

    move-result-object v2

    if-nez v2, :cond_2

    iget-object v2, v1, Lcom/waiqin365/lightapp/product/b/a/m;->h:Lcom/waiqin365/lightapp/product/d/h;

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->b(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Lcom/waiqin365/lightapp/product/d/h;)Lcom/waiqin365/lightapp/product/d/h;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->G(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Landroid/widget/TextView;

    move-result-object v2

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->p(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/d/h;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->p(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/d/h;

    move-result-object v2

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-static {v0, v2, v3, v4}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Lcom/waiqin365/lightapp/product/d/h;Ljava/lang/String;Z)V

    :cond_2
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->t(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-nez v2, :cond_3

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->t(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Ljava/util/List;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/product/b/a/m;->i:Ljava/util/List;

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->N(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)V

    :cond_3
    iget v2, v1, Lcom/waiqin365/lightapp/product/b/a/m;->e:I

    iget v3, v1, Lcom/waiqin365/lightapp/product/b/a/m;->f:I

    if-ne v2, v3, :cond_6

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->e(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    :goto_1
    iget v2, v1, Lcom/waiqin365/lightapp/product/b/a/m;->f:I

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->c(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;I)I

    iget v2, v1, Lcom/waiqin365/lightapp/product/b/a/m;->f:I

    if-eq v5, v2, :cond_4

    iget-object v2, v1, Lcom/waiqin365/lightapp/product/b/a/m;->j:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-nez v2, :cond_5

    :cond_4
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->O(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->clear()V

    :cond_5
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->O(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Ljava/util/List;

    move-result-object v2

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/b/a/m;->j:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->z(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/a/co;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/a/co;->notifyDataSetChanged()V

    goto/16 :goto_0

    :sswitch_1
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->k(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->j(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/d/g;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/g;->h:Lcom/waiqin365/lightapp/product/d/j;

    const-string/jumbo v2, "1"

    iput-object v2, v1, Lcom/waiqin365/lightapp/product/d/j;->g:Ljava/lang/String;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->b(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)V

    goto/16 :goto_0

    :sswitch_2
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->k(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->j(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/d/g;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/g;->m:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    invoke-static {v0, v5}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Z)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->j(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/d/g;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/g;->m:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_6
    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->e(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    goto :goto_1

    :cond_7
    iget-object v1, v1, Lcom/waiqin365/lightapp/product/b/a/m;->c:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_8

    const v1, 0x7f08013b

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_8
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->showToast(Ljava/lang/String;)V

    goto/16 :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x3f4 -> :sswitch_0
        0x457 -> :sswitch_1
        0x8ae -> :sswitch_2
    .end sparse-switch
.end method
